<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Vue实例7</title>
<!--引入Vue库-->
<script src="vue.js"></script>
</head>
<body>	
<ul id="app">
  <li v-for="item in items" v-if="item.isShow">
      {{ item.message }}
  </li>
</ul>
<script>
var example = new Vue({
    el: '#app',
    data: {
      items: [
        {isShow: true,message: 'one' },
        {isShow: false,message: 'two' },
        {isShow: true,message: 'three' }
      ]
    }
 })
</script>
</body>
</html>
